package ajax.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/7/12 0012.
 */
@Controller
@RequestMapping("/ajax")
public class Comet {
    @RequestMapping(value = "/test.do")
    @ResponseBody
    public void testAjax() {
        System.out.println("测试异步");
    }

    public static void main(String[] args) {
        Comet c = new Comet();
        c.testAjax();
    }
}
